GXPostScriptExitServer
QuickDraw GX sends theGXPostScriptExitServer
message when the printer
needs to be restarted. You can override theGXPostScriptExitServer
message to change the code used to exit the server loop in the printer. Your override of theGXPostScriptExitServer
message must match the following formal declaration:
OSErr MyPostScriptExitServer (void);
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX's default implementation of theGXPostScriptQueryPrinter
message sends theGXPostScriptExitServer
message when a device requires restarting. This message allows you to modify the permanent state of a printer.When you exit the server loop, you can make changes that persist after the loop is reentered, such as changing the password. You must send an end-of-file (EOF) to the printer to reenter the server loop.
The default implementation of this message sends the following PostScript code:
serverdict begin 000000 exitserverThe000000
value in this code is the default password for the printer.SPECIAL CONSIDERATIONS
You can either partially or totally override theGXPostScriptExit
Server
message. If you override this message because the password has been changed, you must totally override it.RESULT CODES
The default implementation of the
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. GXPostScriptExitServer
message can also return the communications errors that are listed in Table 4-2 on page 4-42.SEE ALSO
TheGXPostScriptQueryPrinter
message is described on page 4-101.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help